#!/usr/bin/env bash

curl 'http://172.18.1.41:5281/portal?a=logout' \
  -H 'Accept: application/json, text/javascript, */*; q=0.01' \
  -H 'Accept-Language: zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6' \
  -H 'Connection: keep-alive' \
  -H 'Cookie: rmbUser=true; username=ymliu; password=ocab7e9a' \
  -H 'DNT: 1' \
  -H 'Referer: http://172.18.1.41:5281/logout.html?redirect=http://zfw.com/&inac-ip=172.18.31.123&rsid=V1.62.7' \
  -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36 Edg/110.0.1587.57' \
  -H 'X-Requested-With: XMLHttpRequest' \
  --compressed \
  --insecure
  echo ""

curl 'http://172.18.1.41:5281/portal?a=logoutupdate' \
  -H 'Accept: application/json, text/javascript, */*; q=0.01' \
  -H 'Accept-Language: zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6' \
  -H 'Connection: keep-alive' \
  -H 'Cookie: rmbUser=true; username=ymliu; password=ocab7e9a' \
  -H 'DNT: 1' \
  -H 'Referer: http://172.18.1.41:5281/logout.html?redirect=http://zfw.com/&inac-ip=172.18.31.123&rsid=V1.62.7' \
  -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36 Edg/110.0.1587.57' \
  -H 'X-Requested-With: XMLHttpRequest' \
  --compressed \
  --insecure
echo ""
